﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fluent.Logging
{
    public class ProcessLogEntity
    {
        public ProcessLogEntity()
        {
            this.Errors = new List<Exception>();
            this.KnowIssues = new List<Exception>();
        }

        public int ID { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        public string Input { get; set; }

        public string Output { get; set; }

        public int OrderNum { get; set; }

        public int ProcessLevel { get; set; }

        public ProcessLogEntity ParentProcess { get; set; }

        public List<Exception> Errors { get; set; }

        public List<Exception> KnowIssues { get; set; }

        public List<string> Messages { get; set; }

        public List<string> Warnings { get; set; }

        public ELogSectionType LogSection { get; set; }

        public EActionLogType ActionType { get; set; }

        public DateTime ExcuteStartTime { get; set; }

        public DateTime ExcuteEndTime { get; set; }

        public bool IsPassed { get; set; }

        public override string ToString()
        {
            return this.Name;
        }
    }
}
